export default {
  // 命名空间
  namespaced: true,
  state: {
    selectedAddress: {}
  },
  getters: {},
  mutations: {
    editAddress (state, newval) {
      state.selectedAddress = newval

      // 获取当前页面路由
      const pages = getCurrentPages()
      const current = pages[pages.length - 1]
      if (current.options.from === 'order') {
        uni.navigateBack()
      }
    }
  },
  actions: {}
}
